#ifndef MENUBUTTON_H
#define MENUBUTTON_H

#include <GameGlobals.h>
#include <string>

class World;
class Command;

class MenuButton
{
public:
	MenuButton(std::string text, World& gameworld, Command* cmd, vec2 pos = vec2(0,0), float w = 1, float h = 1);
	~MenuButton();

	void SetColor(float r, float g, float b);

	void Update();
	void Draw();

	void OnClick();

private:
	truth MouseOver();
	World& world;
	Command* command;
	vec2 bottomLeft;
	vec2 size;
	float brightness;
	std::string buttonText;

	//render data
	vec2 vertices[4];
	b2Color color;
};

#endif